package com.fowo.api.model.fee.manage.record;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 费用管理操作记录 导入导出辅助模型 */
@Getter
@Setter
public class FeeManageRecordExcelPo {

  @ExcelProperty(value = "所属费用管理")
  private Long parentFeeManageCreateUser;

  @ExcelIgnore
  @ExcelProperty(value = "所属费用管理")
  private Long parentFeeManage;

  @Size(max = 50, message = "操作人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "操作人")
  private String name;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "操作时间")
  private java.util.Date time;

  @Size(max = 50, message = "操作详情长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "操作详情")
  private String details;
}
